package cn.jzvd.bean;

import com.greateffect.littlebud.lib.mvp.BaseBean;

import java.util.UUID;

/**
 * Created by ZengCS on 2019/8/19.
 * E-mail:zcs@sxw.cn
 * Add:成都市天府软件园E3-3F
 */
public class MediaBean extends BaseBean {
    public static final int TYPE_PIC = 0;// 图片
    public static final int TYPE_VIDEO = 1;// 视频
    public static final int TYPE_AUDIO = 2;// 音频

    private String id;
    private String url;
    private String title;
    private int type;
    private String thumbUrl;

    public MediaBean() {
    }

    public MediaBean(int type) {
        this.type = type;
    }

    public MediaBean(int type, String url, String title, String thumbUrl) {
        this.id = UUID.randomUUID().toString();
        this.type = type;
        this.url = url;
        this.title = title;
        this.thumbUrl = thumbUrl;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getThumbUrl() {
        return thumbUrl;
    }

    public void setThumbUrl(String thumbUrl) {
        this.thumbUrl = thumbUrl;
    }
}
